<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class LoginPageController extends CI_Controller {

	function __construct()
	{
		parent::__construct();
		$this->load->helper('url');
	}

	function index()
	{
		$this->load->view('LoginPageView');
	}
	
	function validate_entry()
	{
		$this->load->model('Login_model');
		if($this->Login_model->check_entry($_POST)) redirect('adminPageController/');
		else redirect('loginPageController/');
	}
	
}

/* End of file loginPageController.php */
/* Location: ./application/controllers/loginPageController.php */

?>